package com.saicmotor.springboot_demo.model.json_pojo;

import com.saicmotor.springboot_demo.config.ValidateGroup;

import javax.validation.constraints.NotBlank;

public class UserRoleUpdate {
    @NotBlank(message = "old_user_name cannot be blank",groups = ValidateGroup.UpdateUser.class)
    String oldUserName;
    @NotBlank(message = "new_user_name cannot be blank",groups = ValidateGroup.UpdateUser.class)
    String newUserName;
    @NotBlank(message = "user_name cannot be blank",groups = ValidateGroup.UpdateRole.class)
    String userName;
    @NotBlank(message = "old_role_name cannot be blank",groups = ValidateGroup.UpdateRole.class)
    String oldRoleName;
    @NotBlank(message = "new_role_name cannot be blank",groups = ValidateGroup.UpdateRole.class)
    String newRoleName;
    @NotBlank(message = "role_name cannot be blank",groups = ValidateGroup.UpdateUser.class)
    String roleName;

    public String getOldUserName() {
        return oldUserName;
    }

    public void setOldUserName(String oldUserName) {
        this.oldUserName = oldUserName;
    }

    public String getNewUserName() {
        return newUserName;
    }

    public void setNewUserName(String newUserName) {
        this.newUserName = newUserName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOldRoleName() {
        return oldRoleName;
    }

    public void setOldRoleName(String oldRoleName) {
        this.oldRoleName = oldRoleName;
    }

    public String getNewRoleName() {
        return newRoleName;
    }

    public void setNewRoleName(String newRoleName) {
        this.newRoleName = newRoleName;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}
